﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportObjectsLog.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <link rel="stylesheet" type="text/css" href="assets/css/datepicker.css" />

    <script type='text/javascript' src="assets/js/jquery.ui.datepicker.js"></script>

    <script type='text/javascript' src='Assets/jquery/simple_colorpicker.js'></script>

    <script>
        $(document).ready(function () {
            $("#txtFrom").datepicker({ dateFormat: "dd-mm-yy" });
            $("#txtTo").datepicker({ dateFormat: "dd-mm-yy" });
        });
    </script>

</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <h2>
                ACTION LOG</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server">
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">
                            Action for User: &nbsp;<%Response.Write(strUserName); %>
                        </h3>
                        <div class="clear">
                        </div>
                    </div>
                    <asp:DropDownList class="cls" ID="drAdminUsers" runat="server" Width="200px" TabIndex="17"
                        OnSelectedIndexChanged="drAdminUsers_SelectedIndexChanged" AutoPostBack="false">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtFrom" CssClass="calendar-icon" runat="server" value="From" onclick="if(this.value=='From'){this.value=''; this.style.color='#000'}"
                        onblur="if(this.value==''){this.value='From'; this.style.color='#555'}" Width="125px"></asp:TextBox>
                    <asp:TextBox ID="txtTo" CssClass="calendar-icon" runat="server" value="To" Width="125px"
                        onclick="if(this.value=='To'){this.value=''; this.style.color='#000'}" onblur="if(this.value==''){this.value='To'; this.style.color='#555'}"></asp:TextBox>
                    &nbsp;<asp:Button ID="btnSearch" runat="server" Text="&nbsp;Seach&nbsp;" CssClass="button"
                        OnClick="btnSearch_Click" />
                    <fieldset>
                        <asp:Repeater ID="rptData" runat="server">
                            <ItemTemplate>
                                <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                        <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                                        </asp:HiddenField>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "ObjectName") %>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "ActionAdd") %>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "ActionEdit") %>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "ActionDelete") %>
                                    </td>
                                    <td align="center" style="display: none;">
                                        <%# DataBinder.Eval(Container.DataItem, "LogByObject") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <table class="adminlist" cellspacing="0" cellpadding="0" style="width: 50%; border: 0px;">
                                    <thead>
                                        <tr>
                                            <th align="center" width="30px">
                                                Index
                                            </th>
                                            <th align="center">
                                                Object Name
                                            </th>
                                            <th align="center">
                                                Action Add
                                            </th>
                                            <th align="center">
                                                Action Edit
                                            </th>
                                            <th align="center">
                                                Action Delete
                                            </th>
                                            <!--th align="center">
                                                Log by Object
                                            </th-->
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <FooterTemplate>
                                <tr>
                                    <td colspan="2" style="text-align: right; padding-right: 30px !important; font-weight: bold;">
                                        Sub Total
                                    </td>
                                    <td style="color:Red;font-weight:bold;font-size:14px;text-align:right;">
                                        <%=Sub_Total_Add.ToString("#,#") %>
                                    </td>
                                    <td style="color:Red;font-weight:bold;font-size:14px;text-align:right;">
                                        <%=Sub_Total_Edit.ToString("#,#") %>
                                    </td>
                                    <td style="color:Red;font-weight:bold;font-size:14px;text-align:right;">
                                        <%=Sub_Total_Delete.ToString("#,#") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="text-align: right; padding-right: 30px !important; font-weight: bold;">
                                        Total
                                    </td>
                                    <td colspan="3" style="color:Red;font-weight:bold;font-size:14px;text-align:right;">
                                        <%=All_Total.ToString("#,#") %>
                                    </td>
                                </tr>
                                </TABLE>
                            </FooterTemplate>
                        </asp:Repeater>
                    </fieldset>
                </form>
            </div>
            <div id="footer">
                <%=strPager%>
            </div>
        </div>
    </div>
</body>
</html>
